import request from '@/utils/request'

// 查询Dify应用配置列表
export function listDifyApp(query) {
  return request({
    url: '/system/difyApp/list',
    method: 'get',
    params: query
  })
}

// 查询Dify应用配置详细
export function getDifyApp(id) {
  return request({
    url: '/system/difyApp/' + id,
    method: 'get'
  })
}

// 新增Dify应用配置
export function addDifyApp(data) {
  return request({
    url: '/system/difyApp',
    method: 'post',
    data: data
  })
}

// 修改Dify应用配置
export function updateDifyApp(data) {
  return request({
    url: '/system/difyApp',
    method: 'put',
    data: data
  })
}

// 删除Dify应用配置
export function delDifyApp(id) {
  return request({
    url: '/system/difyApp/' + id,
    method: 'delete'
  })
}
